package com.lhdx.practical.excelBean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.lhdx.practical.bean.Person;

public class ExcelTeacher {
    @Excel(name = "老师姓名")
    private String realname;
    @Excel(name = "性别")
    private String sex;
    @Excel(name = "登录用户名")
    private String username;
    @Excel(name = "登录密码")
    private String password;
    @Excel(name = "老师简介")
    private String profile;

    public ExcelTeacher(){};

    public ExcelTeacher(Person person){
        this.realname = person.getRealname();
        this.username = person.getUsername();
        this.password = person.getPassword();
        this.profile = person.getProfile();
        if(person.getSex() == 0){
            this.sex = "男";
        }else{
            this.sex = "女";
        }
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
